package com.chinasoft04.mall.service;

import com.chinasoft04.mall.dto.Category;
import org.springframework.lang.Nullable;
import org.springframework.transaction.annotation.Transactional;

public interface CategoryService {

    public Object getCategories(Integer type, @Nullable Integer pagenum, @Nullable Integer pagesize);

    @Transactional
    public Category insertCategory(Category category);

    public Category getOneCategory(Integer id);

    @Transactional
    public Category updateCategory(Integer id, String cat_name);

    @Transactional
    public int deleteCategory(Integer id);
}
